package Message.BroadCast
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SEntityGroupInfo extends Object implements IMessageBase
    {
        public var entityId:SEntityId;
        public var groupInfo:SMiniGroupInfo;
        public const _type:int = 29;
        public static var _regist:SEntityGroupInfo = new SEntityGroupInfo(true);

        public function SEntityGroupInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SEntityGroupInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.groupInfo.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.groupInfo = new SMiniGroupInfo();
            this.groupInfo.__read(param1);
            
        }

    }
}
